home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.1 (Developer) [x86] / NeXT Step 3.1 Intel dev.cdr.dmg / NextDeveloper / Headers / driverkit / interruptMsg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-26  |  931 b   |  42 lines

  1. /*     Copyright (c) 1991 NeXT Computer, Inc.  All rights reserved. 
  2.  *
  3.  * interruptMsg.h - Interrupt message defintion.
  4.  *
  5.  * HISTORY
  6.  * 04-Apr-91    Doug Mitchell at NeXT
  7.  *      Created. 
  8.  */
  9.  
  10. #import <mach/message.h>
  11.  
  12. /*
  13.  * Interrupt message sent by kernel to device-specific handler.
  14.  */
  15. typedef struct {
  16.  
  17.     msg_header_t    header;        // standard message header 
  18.     
  19.     /* TBD, probably nothing. */
  20.     
  21. } IOInterruptMsg;
  22.  
  23. /*
  24.  * Values for IOInterruptMsg.header.
  25.  */
  26. #define IO_INTERRUPT_MSG_ID_BASE    0x232323
  27.  
  28. #define IO_TIMEOUT_MSG            (IO_INTERRUPT_MSG_ID_BASE + 0)
  29. #define IO_COMMAND_MSG            (IO_INTERRUPT_MSG_ID_BASE + 1)
  30. #define IO_DEVICE_INTERRUPT_MSG        (IO_INTERRUPT_MSG_ID_BASE + 2)
  31.  
  32. #ifdef    m68k
  33. #define IO_DMA_INTERRUPT_MSG        (IO_INTERRUPT_MSG_ID_BASE + 3)
  34. #else    m68k
  35. #define IO_DMA_INTERRUPT_MSG        (IO_DEVICE_INTERRUPT_MSG)
  36. #endif    m68k
  37.  
  38. /*
  39.  * Next 16 reserved.
  40.  */
  41. #define IO_FIRST_UNRESERVED_INTERRUPT_MSG (IO_INTERRUPT_MSG_ID_BASE + 19)
  42.